LiveStreamAI/chatterbot 您所在的位置:网站首页 chatter bot LiveStreamAI/chatterbot

LiveStreamAI/chatterbot

#LiveStreamAI/chatterbot| 来源: 网络整理| 查看: 265

安装 chatterbot

chatterbot 推荐的python版本是 3.7,但本项目使用的 bilibili-api-python 库的 python 最低要求版本是3.8。作者在 Mac 上是直接成功的,但在 Windows 上按照正常方法安装失败了。下面提供解决方案。

如果是提示:Encountered error while trying to install package. blis,这是因为chatterbot依赖的Spacy,依赖了较低版本的blis,导致无法从源码build出wheel给pip安装。

直接跳过依赖进行安装:pip install chatterbot --no-deps 然后安装blis:pip install blis。本身需要低版本的blis,但高版本也是可以运行的 上一步的时候,pip会提示blis版本和chatterbot依赖版本不兼容,同时给出未安装的库,譬如SQLAlchemy 根据提示缺失的库和最低版本,用pip install ==进行安装 chatterbot-corpus

直接通过命令pip install chatterbot-corpus安装

最终运行

到Chatterbot目录下运行TrainChatterBot.py,可能会出现time.clock is not an attribute报错,那就直接根据报错给出的代码位置,把它改成time.perf_counter()。这是因为python3.8去掉了time.clock。



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有